﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace BR_CruzDelSur
{
    public class BR_Conexion
    {
        static private SqlConnection singleton = null;

        private BR_Conexion()
        {
            
        }

        static public SqlConnection getSingleton()
        {
            // Solo la primera vez entra por este if
            if (singleton == null)
            {
                singleton = new SqlConnection();
            }
            return singleton;
        }
    }
}
